<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<link type="text/css" rel="stylesheet" href="../skin/css/table.css"/>
<script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="../skin/js/del.js"></script>
<script type="text/javascript">
    $(function () {
        $(".submit1").click(function () {
            $("#logFamily_manage").show();
            $("#department_manage").hide();
        });
        $(".submit2").click(function () {
            $("#logFamily_manage").hide();
            $("#department_manage").show();
        });
    });
</script>
<head>
    <title>分类管理</title>
</head>
<body>
<jsp:include page="../functionModule.jsp"/>
<div class="right_layout">
    <img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
    <div class="right_content">

        <div class="right_tit">
            <div class="right_back fyh"><a href="${pageContext.request.contextPath}/home?method=home">返回</a></div>
            <div class="tit_bg fyh">当前位置： 管理菜单 >>分类管理</div>
        </div>
        <div class="tabel_choose" style="padding: 10px 10px 0px 22px">
            <input type="submit" value="日&nbsp;&nbsp;志" class="table_bt submit1"/><input type="submit" class="table_bt fyh submit1" value="分&nbsp;&nbsp;类"/>
            <input type="submit" value="部&nbsp;&nbsp;门" class="table_bt submit2"/><input type="submit" class="table_bt fyh submit2" value="分&nbsp;&nbsp;类"/>
        </div>
        <div id="logFamily_manage">
            <table class="tab">
                <tr>
                    <th width="10%" class="tab_th fyh"><input type="checkbox" class="tab_checkbox1"/>ID</th>
                    <th width="20%" class="tab_th fyh">文档类型</th>
                    <th width="10%" class="tab_th fyh">管理</th>
                </tr>
                <c:forEach items="${logFamilyList}" var="logFamily" varStatus="vs">
                    <tr>
                        <td class="tab_td fyh"><input type="checkbox" class="tab_checkbox"/><span class="tab_span">${logFamily.id}</span></td>
                        <td class="tab_td fyh">${logFamily.logFamily}</td>
                        <td class="tab_td fyh"><a href="${pageContext.request.contextPath}/clazz?method=deleteClazzLogFamily&id=${logFamily.id}" onclick="javaScripte:return del()"><input type="button" class="tab_button" value="删除"/></a></td>
                    </tr>
                </c:forEach>
            </table>
            <form action="${pageContext.request.contextPath}/clazz?method=addClazzLogFamily" method="post">
            <div>
                <span style="font-size: 16px;padding-top: 2px;">文档类型:</span>
                <input type="text" name="logFamily" style="border: solid;border-width: 1px;height: 25px;">
                <input type="submit" value="添&nbsp;&nbsp;加" class="table_bt"/>
            </div>
            </form>
        </div>
        <div id="department_manage" hidden="hidden">
            <table class="tab">
                <tr>
                    <th width="10%" class="tab_th fyh"><input type="checkbox" class="tab_checkbox1"/>ID</th>
                    <th width="20%" class="tab_th fyh">部门类型</th>
                    <th width="10%" class="tab_th fyh">管理</th>
                </tr>
                <c:forEach items="${departmentList}" var="department" varStatus="vs">
                    <tr>
                        <td class="tab_td fyh"><input type="checkbox" class="tab_checkbox"/><span class="tab_span">${department.id}</span></td>
                        <td class="tab_td fyh">${department.department}</td>
                        <td class="tab_td fyh"><a href="${pageContext.request.contextPath}/clazz?method=deleteClazzDepartment&id=${department.id}" onclick="javaScripte:return del()"><input type="button" class="tab_button" value="删除"/></a></td>
                    </tr>
                </c:forEach>
            </table>
            <form action="${pageContext.request.contextPath}/clazz?method=addClazzDepartment" method="post">
                <div>
                    <span style="font-size: 16px;padding-top: 2px;">部门类型:</span>
                    <input type="text" name="department" style="border: solid;border-width: 1px;height: 25px;">
                    <input type="submit" value="添&nbsp;&nbsp;加" class="table_bt"/>
                </div>
            </form>
        </div>
    </div>
    <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
</div>
</body>
</html>
